<?php
namespace app\admin\controller;
use \think\facade\View;
use \think\facade\Request;

class vip{

    public function vipList()
    {
        $keywords = Request::param('keywords');
        $where[] = ['uname','like',"%{$keywords}%"];
        $viplist=\app\admin\model\Vip::getViplist($where);
//
//        echo "<pre>";
//        print_r($viplist->toArray());
//        echo "</pre>";


        View::assign("viplist",$viplist);
        return view('vip_list');
    }



    public function vipAdd()
    {
        return view('vip_add');
    }
}